#include<iostream>

using namespace std;

int main()
{
    string s;
    string a, b;
    int cnt = 0;
    while (cin >> s, s != ".")
    {
        cnt++;
        if (cnt == 2) a = s;
        if (cnt == 14) b = s;
    }
    if (cnt > 14) cout << a << " and " << b << " are inviting you to dinner..." << endl;
    else if (cnt >= 2 && cnt < 14) cout << a << " is the only one for you..." << endl;
    else cout << "Momo... No one is for you ..." << endl;
    return 0;
}